package calculator;

public class Validator {

	public void validate(long value) throws OverflowException {
		if (value > Integer.MAX_VALUE) {
			throw new OverflowException(	);
		}
		else if (value < Integer.MIN_VALUE) {
			throw new OverflowException();
		}
	}

}
